#!/bin/sh
set -ex
mkdir -p /data/log
APIServer=${API_SERVER:-'http://127.0.0.1'}
sed -i "s|\${API_SERVER}|${APIServer}|g" /etc/nginx/nginx.conf
exec nginx;
